@echo off
rem #####################################################
rem Downloads the given artifact from Artifactory binary 
rem repository and unzips its content in the current
rem directory
rem Important: depends on having wget and 7za commands
rem installed in the PATH
rem 
rem Usage resolve.cmd <artifactName> <target environment>
rem
rem Example: resolve.cmd Calc-Web-1.1.11.4 int
rem 
rem #####################################################

set BINARY_REPO_BASE_URL="http://localhost:8080/artifactory/simple/libs-release-local/winFiles"
set ARTIFACT_NAME=%1
set TARGET_ENV=%2

wget %BINARY_REPO_BASE_URL%/%ARTIFACT_NAME%.zip .
7za x %ARTIFACT_NAME%.zip